package com.fr.data.impl.sap;

import com.fr.data.AbstractDataModel;

public class SAPDataModel extends AbstractDataModel {
	private String[][] tableData;
	private String[] columnNames;

	public SAPDataModel(String[][] tableData, String[] columnNames) {
		this.tableData = tableData;
		this.columnNames = columnNames;
	}

	public int getColumnCount() {
		return columnNames.length;
	}

	public String getColumnName(int columnIndex) {
		return columnNames[columnIndex];
	}

	public int getRowCount() {
		return tableData.length;
	}

	public Object getValueAt(int rowIndex, int columnIndex) {
		return tableData[rowIndex][columnIndex];
	}

	public void release() throws Exception {

	}
}